package com.wywah.core.propesties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConfigurationProperties(value = "yunduo.check.token")
public class CheckTokenProperties {
    /**
     * 是否启动
     */
    private boolean enable = false;

    /**
     * 白名单列表
     */
    private List<String> whitelist = new ArrayList<>();

    /**
     * 校验的request header keys
     */
    private List<String> checkHeaderKeys = new ArrayList<>();

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public List<String> getWhitelist() {
        return whitelist;
    }

    public void setWhitelist(List<String> whitelist) {
        this.whitelist = whitelist;
    }

    public List<String> getCheckHeaderKeys() {
        return checkHeaderKeys;
    }

    public void setCheckHeaderKeys(List<String> checkHeaderKeys) {
        this.checkHeaderKeys = checkHeaderKeys;
    }
}
